<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue 模板语法入门</title>
    <script src="./node_modules/vue/dist/vue.global.js"></script>
</head>
<body>
    <div id="app">
        <h1>{{msg}}</h1>
    </div>
</body>

<script>
    const {createApp} = Vue;

    const app = createApp({
        // 这里的data必须写成函数形式，且返回一个对象；对象的属性就是需要用到的变量
        data() {
            return {
                msg: 'Hello Vue3'
    
            }
        
        }
    }).mount('#app');
    console.log(app);
</script>
</html>